home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / STRING.H < prev    next >
C/C++ Source or Header  |  1993-11-23  |  6KB  |  168 lines

  1. /***
  2. *string.h - declarations for string manipulation functions
  3. *
  4. *   Copyright (c) 1985-1992, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *   This file contains the function declarations for the string
  8. *   manipulation functions.
  9. *   [ANSI/System V]
  10. *
  11. ****/
  12.  
  13. #ifndef _INC_STRING
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif 
  18.  
  19. #if (_MSC_VER <= 600)
  20. #define __cdecl     _cdecl
  21. #define __far       _far
  22. #define __near      _near
  23. #endif 
  24.  
  25. #ifndef _SIZE_T_DEFINED
  26. typedef unsigned int size_t;
  27. #define _SIZE_T_DEFINED
  28. #endif 
  29.  
  30. #ifndef _WCHAR_T_DEFINED
  31. typedef unsigned short wchar_t;
  32. #define _WCHAR_T_DEFINED
  33. #endif 
  34.  
  35. /* define NULL pointer value */
  36.  
  37. #ifndef NULL
  38. #ifdef __cplusplus
  39. #define NULL    0
  40. #else 
  41. #define NULL    ((void *)0)
  42. #endif 
  43. #endif 
  44.  
  45. /* function prototypes */
  46.  
  47. void * __cdecl _memccpy(void *, const void *,
  48.     int, unsigned int);
  49. void * __cdecl memchr(const void *, int, size_t);
  50. int __cdecl memcmp(const void *, const void *,
  51.     size_t);
  52. int __cdecl _memicmp(const void *, const void *,
  53.     unsigned int);
  54. void * __cdecl memcpy(void *, const void *,
  55.     size_t);
  56. void * __cdecl memmove(void *, const void *,
  57.     size_t);
  58. void * __cdecl memset(void *, int, size_t);
  59. void __cdecl _movedata(unsigned int, unsigned int, unsigned int,
  60.     unsigned int, unsigned int);
  61. char * __cdecl strcat(char *, const char *);
  62. char * __cdecl strchr(const char *, int);
  63. int __cdecl strcmp(const char *, const char *);
  64. int __cdecl _strcmpi(const char *, const char *);
  65. int __cdecl strcoll(const char *, const char *);
  66. int __cdecl _stricmp(const char *, const char *);
  67. char * __cdecl strcpy(char *, const char *);
  68. size_t __cdecl strcspn(const char *, const char *);
  69. char * __cdecl _strdup(const char *);
  70. char * __cdecl _strerror(const char *);
  71. char * __cdecl strerror(int);
  72. size_t __cdecl strlen(const char *);
  73. char * __cdecl _strlwr(char *);
  74. char * __cdecl strncat(char *, const char *,
  75.     size_t);
  76. int __cdecl strncmp(const char *, const char *,
  77.     size_t);
  78. int __cdecl _strnicmp(const char *, const char *,
  79.     size_t);
  80. char * __cdecl strncpy(char *, const char *,
  81.     size_t);
  82. char * __cdecl _strnset(char *, int, size_t);
  83. char * __cdecl strpbrk(const char *,
  84.     const char *);
  85. char * __cdecl strrchr(const char *, int);
  86. char * __cdecl _strrev(char *);
  87. char * __cdecl _strset(char *, int);
  88. size_t __cdecl strspn(const char *, const char *);
  89. char * __cdecl strstr(const char *,
  90.     const char *);
  91. char * __cdecl strtok(char *, const char *);
  92. char * __cdecl _strupr(char *);
  93. size_t __cdecl strxfrm (char *, const char *,
  94.     size_t);
  95.  
  96.  
  97. /* model independent function prototypes */
  98.  
  99. void __far * __far __cdecl _fmemccpy(void __far *, const void __far *,
  100.     int, unsigned int);
  101. void __far * __far __cdecl _fmemchr(const void __far *, int, size_t);
  102. int __far __cdecl _fmemcmp(const void __far *, const void __far *,
  103.     size_t);
  104. void __far * __far __cdecl _fmemcpy(void __far *, const void __far *,
  105.     size_t);
  106. int __far __cdecl _fmemicmp(const void __far *, const void __far *,
  107.     unsigned int);
  108. void __far * __far __cdecl _fmemmove(void __far *, const void __far *,
  109.     size_t);
  110. void __far * __far __cdecl _fmemset(void __far *, int, size_t);
  111. char __far * __far __cdecl _fstrcat(char __far *, const char __far *);
  112. char __far * __far __cdecl _fstrchr(const char __far *, int);
  113. int __far __cdecl _fstrcmp(const char __far *, const char __far *);
  114. int __far __cdecl _fstricmp(const char __far *, const char __far *);
  115. char __far * __far __cdecl _fstrcpy(char __far *, const char __far *);
  116. size_t __far __cdecl _fstrcspn(const char __far *, const char __far *);
  117. char __far * __far __cdecl _fstrdup(const char __far *);
  118. char __near * __far __cdecl _nstrdup(const char __far *);
  119. size_t __far __cdecl _fstrlen(const char __far *);
  120. char __far * __far __cdecl _fstrlwr(char __far *);
  121. char __far * __far __cdecl _fstrncat(char __far *, const char __far *,
  122.     size_t);
  123. int __far __cdecl _fstrncmp(const char __far *, const char __far *,
  124.     size_t);
  125. int __far __cdecl _fstrnicmp(const char __far *, const char __far *,
  126.     size_t);
  127. char __far * __far __cdecl _fstrncpy(char __far *, const char __far *,
  128.     size_t);
  129. char __far * __far __cdecl _fstrnset(char __far *, int, size_t);
  130. char __far * __far __cdecl _fstrpbrk(const char __far *,
  131.     const char __far *);
  132. char __far * __far __cdecl _fstrrchr(const char __far *, int);
  133. char __far * __far __cdecl _fstrrev(char __far *);
  134. char __far * __far __cdecl _fstrset(char __far *, int);
  135. size_t __far __cdecl _fstrspn(const char __far *, const char __far *);
  136. char __far * __far __cdecl _fstrstr(const char __far *,
  137.     const char __far *);
  138. char __far * __far __cdecl _fstrtok(char __far *, const char __far *);
  139. char __far * __far __cdecl _fstrupr(char __far *);
  140.  
  141.  
  142. #ifndef __STDC__
  143. /* Non-ANSI names for compatibility */
  144. void * __cdecl memccpy(void *, const void *,
  145.     int, unsigned int);
  146. int __cdecl memicmp(const void *, const void *,
  147.     unsigned int);
  148. void __cdecl movedata(unsigned int, unsigned int, unsigned int,
  149.     unsigned int, unsigned int);
  150. int __cdecl strcmpi(const char *, const char *);
  151. int __cdecl stricmp(const char *, const char *);
  152. char * __cdecl strdup(const char *);
  153. char * __cdecl strlwr(char *);
  154. int __cdecl strnicmp(const char *, const char *,
  155.     size_t);
  156. char * __cdecl strnset(char *, int, size_t);
  157. char * __cdecl strrev(char *);
  158. char * __cdecl strset(char *, int);
  159. char * __cdecl strupr(char *);
  160. #endif 
  161.  
  162. #ifdef __cplusplus
  163. }
  164. #endif 
  165.  
  166. #define _INC_STRING
  167. #endif 
  168.